package W1108;

public class Keche extends QiChe {

	public int seat;

	public Keche() {
	}

	public Keche(String chenum, String logo, int rent, int seat) {
		super(chenum, logo, rent);
		this.seat = seat;

	}

	public int getSeat() {
		return seat;
	}

	public void setSeat(int seat) {
		this.seat = seat;
	}

	@Override
	public double calMoney(int day) {
		if (day > 150) {
			System.out.println();
			return this.getRent() * day * 0.6;
		}
		if (day >= 30) {
			return this.getRent() * day * 0.7;
		}
		if (day >= 7) {
			return this.getRent() * day * 0.8;
		}
		if (day >= 3) {
			return this.getRent() * day * 0.9;
		}
		return this.getRent() * day;
	}

}
